﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Models
{
    public class rules
    {
        public rules()
        { }
        #region Model
        private int _id;
        private string _rule_code;
        private int? _sensor_id;
        private int? _parameter_id;
        private string _upper_upper_value;
        private string _upper_value;
        private string _lower_value;
        private string _lower_lower_value;
        private int? _flag;
        /// <summary>
        /// 
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string rule_code
        {
            set { _rule_code = value; }
            get { return _rule_code; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? sensor_id
        {
            set { _sensor_id = value; }
            get { return _sensor_id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? parameter_id
        {
            set { _parameter_id = value; }
            get { return _parameter_id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string upper_upper_value
        {
            set { _upper_upper_value = value; }
            get { return _upper_upper_value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string upper_value
        {
            set { _upper_value = value; }
            get { return _upper_value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string lower_value
        {
            set { _lower_value = value; }
            get { return _lower_value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string lower_lower_value
        {
            set { _lower_lower_value = value; }
            get { return _lower_lower_value; }
        }
        /// <summary>
        /// 启用状态
        /// </summary>
        public int? flag
        {
            set { _flag = value; }
            get { return _flag; }
        }
        #endregion Model
    }
}
